// 热门宝箱
import { request } from "./indexsd.js";

export const User = (type = 1) => {

	return axios.get(`/article?type=${type}`)
}
export const Login = (from) => {

	return axios.post(`/login`, from)
}
export const getsendsms = (data) => {
	return axios.post(`/send_sms`, data)
}
export const getUsetInof = (data) => {
	return axios.get(`/me`, data)
}
export const welfare = () => {
    return request({
        url: "/welfare",
        method: "get"
    });
}
export default {
	User,
	Login,
	getsendsms,
	getUsetInof,
	welfare
}